package dth.entity;

import java.sql.Date;

import javax.persistence.*;
@Entity
@Table(name="account")
public class Account {
	@Id
	@Column(columnDefinition="int",name="user_id")
	private int userId;
	@Column(columnDefinition="char",name="user_name")
	private String userName;
	@Column(columnDefinition="char",name="password")
	private String userPass;
	@Column(columnDefinition="int",name="fk_dealer_id")
	private int fkDealerId;
	@Column(columnDefinition="int",name="fk_distributor_id")
	private int fkDistributorId;
	@Column(columnDefinition="int",name="fk_user_id")
	private int fkUserId;
	@Column(columnDefinition="int",name="fk_admin_id")
	private int fkAdminId;
	@Column(columnDefinition="datetime",name="date_insert")
	private Date dateInsert;
	
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserPass() {
		return userPass;
	}
	public void setUserPass(String userPass) {
		this.userPass = userPass;
	}
	public int getFkDealerId() {
		return fkDealerId;
	}
	public void setFkDealerId(int fkDealerId) {
		this.fkDealerId = fkDealerId;
	}
	public int getFkDistributorId() {
		return fkDistributorId;
	}
	public void setFkDistributorId(int fkDistributorId) {
		this.fkDistributorId = fkDistributorId;
	}
	public int getFkUserId() {
		return fkUserId;
	}
	public void setFkUserId(int fkUserId) {
		this.fkUserId = fkUserId;
	}
	public int getFkAdminId() {
		return fkAdminId;
	}
	public void setFkAdminId(int fkAdminId) {
		this.fkAdminId = fkAdminId;
	}
	public Date getDateInsert() {
		return dateInsert;
	}
	public void setDateInsert(Date dateInsert) {
		this.dateInsert = dateInsert;
	}
	@Override
	public String toString() {
		return "Account [userId=" + userId + ", userName=" + userName
				+ ", userPass=" + userPass + ", fkDealerId=" + fkDealerId
				+ ", fkDistributorId=" + fkDistributorId + ", fkUserId="
				+ fkUserId + ", fkAdminId=" + fkAdminId + "]";
	}
	
}
